package com.test.design.pattern.strategy;

/**
 * @ClasName Client
 * @Descripution TODO
 * @Author leikw
 * @Date 2021/12/20 14:39
 * @Version V1.0
 */
public class Client {

    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());

        salesMan.salesManShow();

        System.out.println("==========");

        salesMan.setStrategy(new StrategyB());


        salesMan.salesManShow();

        System.out.println("==========");

        salesMan.setStrategy(new StrategyC());

        salesMan.salesManShow();

    }

}
